// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    
    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData:{
    userInfo:null,
    favorites:[],
    words:[{e:'hello',c:'你好',s:'.v'}, {e:'yangxiaolin',c:'帅哥',s:'.n'},{e:'qiaoyuqi',c:'美女',s:'.n'},{e:'lijingyi',c:'美女',s:'.n'},{e:'world',c:'世界',s:'.n'},{e:'shit',c:'玛德',s:'.n'},{e:'fuck',c:'可恶',s:'.v'},{e:'666这个入有轨',c:'无法翻译...',s:'.n'}]
  }
})
